package org.ctsi.rsds.base.rest.result;

import java.io.Serializable;

public class ObjectRESTResult implements Serializable {

	private static final long serialVersionUID = -2768608958139995837L;
	protected int statusCode = 200;
    protected Object returnObj;
    protected String msg;
    
	public ObjectRESTResult() {
	}
	
	public ObjectRESTResult(Object returnObj) {
		this.returnObj = returnObj;
	}
	
	public ObjectRESTResult(int statusCode, String msg) {
		this.statusCode = statusCode;
		this.msg = msg;
	}

	public ObjectRESTResult(int statusCode, String msg, Object returnObj) {
		this.statusCode = statusCode;
		this.returnObj = returnObj;
		this.msg = msg;
	}

	public int getStatusCode() {
		return statusCode;
	}
	public void setStatusCode(int statusCode) {
		this.statusCode = statusCode;
	}
	public Object getReturnObj() {
		return returnObj;
	}
	public void setReturnObj(Object returnObj) {
		this.returnObj = returnObj;
	}
	public String getMsg() {
		return msg;
	}
	public void setMsg(String msg) {
		this.msg = msg;
	}
}
